package cn.edu.huanu.service.impl;

import cn.edu.huanu.dao.BookDao;
import cn.edu.huanu.dao.impl.BookDaoImpl;
import cn.edu.huanu.exception.BusinessException;
import cn.edu.huanu.pojo.Book;
import cn.edu.huanu.service.BookService;

/**
 * @author hb
 * @date 2025-11-19 16:47:22
 */
public   class BookServiceImpl implements BookService {
    private BookDao bookDao =new BookDaoImpl();
    @Override
    public Book findById(Integer id) throws BusinessException {
         return bookDao.queryBookById(id);
    }
}
